package lab02.test19;

public class Test19 {
    public static void main(String[] args) {
        String result = "HelloWord";
        for (int i = 0;i<result.length();i++){

            char  tmp = result.charAt(i);
            if (tmp>='A'&&tmp<='Z'){
                System.out.print((char) (tmp + 32));
            }else  if (tmp>='a'&&tmp<='z') {
                System.out.print((char) (tmp - 32));
            }
        }
    }
}
